<?php


namespace app\api\model;


class Msg extends BaseModel {

    public function getList($openid,$page,$pagesize= ''){
        $pagesize = $pagesize ? $pagesize : $this->pagesize;
        $startPage = ( $page - 1 ) * $pagesize;
        return self::where('openid',$openid)->order('id desc')->limit($startPage,$pagesize)->select();
    }








}